package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.CheckPwdEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.RxHttpObserver;

/**
 * WithdrawContract
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/5/8 16:32.
 */

public interface WithdrawContract {

    interface Model {
        /**
         * 提现
         */
        void withdraw(String account, String withdraw_money, String user_pay_pwd, RxHttpObserver<Object> httpObserver);

        void checkPayPwd(RxHttpObserver<CheckPwdEntity> httpObserver);
    }

    interface View extends BaseMvpView {

        /**
         * 获取账户信息
         */
        String getAccount();

        /**
         * 获取金额
         */
        String getMoney();

        /**
         * 支付密码
         * @return
         */
        String getPayPwd();

        void onSettingPayPwd();

        void showPayPwdDialog();


    }

    interface Presenter {
        /**
         * 提现
         */
        void withdraw();

        void checkPayPwd();
    }
}
